package iterable_i_iterator;

import java.util.Arrays;
import java.util.Calendar;
import java.util.List;

/**
 * Autor: Daniel Michalski
 * Data: 12.07.13
 */

public class Main {

    public Main() {
        String[] names = { "Ala", "Asia", "Janek" };
        List<String> list = Arrays.asList(names);

        for (String name : names)
            System.out.println(name);

        for (String name : list)
            System.out.println(name + " - długość " + name.length());

        Calendar from = Calendar.getInstance();
        Calendar to = Calendar.getInstance();
        to.add(Calendar.DAY_OF_MONTH, 5);

        FromTo timeInterval = new FromTo(from, to);

        for (Calendar day : timeInterval) {
            System.out.println(day.getTime());
        }
    }

    public static void main(String[] args) {
        new Main();
    }
}
